﻿using System.Web;
using System.Web.Optimization;

namespace MVC4App
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                        "~/Scripts/jquery-ui-{version}.js"));

            //bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
            //            "~/Scripts/jquery.validate.min.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive*",
                        "~/Scripts/jquery.validate*","~/Scripts/jquery.form.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryeffects").Include(
                        "~/Scripts/jquery.effects*"));

            bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
                        "~/Scripts/kendo/kendo.all.min.js"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/admin").Include(
                        "~/Scripts/admin/*.js"));


            bundles.Add(new StyleBundle("~/kendo/css").Include("~/Content/themes/kendo/kendo.common.min.css", "~/Content/themes/kendo/kendo.metro.min.css"));            
            bundles.Add(new StyleBundle("~/admin/css").Include("~/Content/themes/admin/css/common.css"));
            //BundleTable.EnableOptimizations = true;
        }
    }
}